<template>
  <div class="bottom">
    <ul>
      <li>
        <i></i>
        <p>客服</p>
      </li>
      <li>
        <i></i>
        <p>店铺</p>
      </li>
      <li>
        <i></i>
        <p>收藏</p>
      </li>
    </ul>
    <div>
      <div class="shopCat" @click="addShop()">加入购物车</div>
      <div class="shop">购买</div>
    </div>
  </div>
</template>
<script>
export default {
  name: "DetailBottomBar",
  data() {
    return {};
  },
  methods: {
    addShop() {
      this.$emit("addCart");
    },
  },
};
</script>
<style scoped>
.bottom {
  position: fixed;
  left:0;
  right:0;
  bottom: 0;
  display: flex;
  width: 100%;
  height: 44px;
  background: #fff;
  font-size: 14px;
}
.bottom ul {
  flex: 1;
  list-style: none;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}
.bottom ul i {
  display: block;
  margin: 0 auto;
  width: 20px;
  height: 20px;
  background: url("~assets/img/detail/detail_bottom.png") 0px 0px;
  background-size: 20px;
}
.bottom ul li:nth-child(2) i {
  background-position: 0 -88px;
}
.bottom ul li:nth-child(1) i {
  background-position: 0 -47px;
}
.bottom div {
  flex: 1;
  display: flex;
  justify-content: space-around;
}
.shop {
  flex: 1;
  background: var(--color-tint);
  line-height: 44px;
}
.shopCat {
  flex: 1;
  background: yellow;
  line-height: 44px;
}
</style>